<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>角色管理</title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<% include("/admin/resource/common_css.html"){} %>
	    <link rel="stylesheet" href="${ctx}/plugin/zTree/zTreeStyle.css" />
	</head>
	<body>
		<% include("/admin/common/header.html"){} %>
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>
			<div class="main-container-inner">
				<% include("/admin/common/menu.html",{currentstr:"系统"}){} %>
				<div class="main-content">
					<% include("/admin/common/breadcrumb.html",{breadaddfirst:"系统管理",breadaddsecond:"角色管理",breadaddthird:"角色添加"}){} %>
					<div class="page-content">
				       	 <table style="margin:auto; width:75%;margin-top:30px;">
			              	<tr>
			              	  <td width="150px" align="right" nowrap="nowrap">角色名称：</td> 
							  <td width="500px">
							      <input type="text" name="role.name" id="rolename" value="${role.name!}" style="width: 300px;"><span class="red">&nbsp;*</span>
							      <input type="hidden" name="role.id" id="roleid" value="${role.id!}">
							  </td>
			              	 </tr> 
			              	 <tr>
			              	   <td align="right" nowrap="nowrap">角色描述：</td>  
							    <td>
							     <textarea name="role.description" id="description" style="margin: 0px 0px 10px; width: 300px; height: 75px;">${role.description!}</textarea>
			                    </td>
			              	 </tr>
			              	  <tr>
				              	  <td align="right" nowrap="nowrap" valign="top">对应权限：</td>  
				              	  <td align="left" nowrap="nowrap">
									  <ul id="tree" class="ztree" style="border: 1px solid #d5d5d5;width:300px;"></ul>  
								  </td>
			              	  </tr>
			               </table>
			               <div class="form-actions">
						  <button class="btn btn-success" id="submit" onclick="saveRole()">保存</button>
						  <input type="hidden" name="oprtype" id="oprtype" value="${oprtype!}"/>
					    </div>
					</div><!-- /.page-content -->
				</div><!-- /.main-content -->
				<% include("/admin/common/acesetting.html"){}%>
			</div><!-- /.main-container-inner -->
		</div><!-- /.main-container -->
	<% include("/admin/common/footer.html"){} %>
	<% include("/admin/resource/common_js.html"){} %>
	<script src="${ctx!}/plugin/zTree/js/jquery.ztree.core-3.5.js" type="text/javascript"></script>
    <script src="${ctx!}/plugin/zTree/js/jquery.ztree.excheck-3.5.js" type="text/javascript"></script>
    <script src="${ctx!}/plugin/zTree/js/jquery.ztree.exedit.js" type="text/javascript"></script>
    <script type="text/javascript" charset="utf-8" src="${ctx!}/js/admin/auth/role.js"> </script>
	<script type="text/javascript">
	  loadData("${ctx!}");
	</script>
</body>
</html>

